#ifndef GROUD4CONFIG_H
#define GROUD4CONFIG_H

#define MQTT_HOSTNAME "mqtt.yyzlab.com.cn"
#define MQTT_PORT 1883
//云端订阅topic
#define MQTT_SERVER_SIM "group4/163310/SERVER/SIM"
//云端发布topic
#define MQTT_SERVER_APP "group4/163310/SERVER/APP"
//硬件订阅topic
#define MQTT_DEVICE_SIM "group4/163310/DEVICE/SIM"
//硬件发布topic
#define MQTT_DEVICE_APP "group4/163310/DEVICE/APP"
//光照传感器信息
#define LIGHT "{\"light\":%lf,\"id\":%d}"
//温度、湿度传感器信息
#define TEM_HUM " {\"tem\":%lf,\"hum\":%lf,\"id\":%d}"
//蜂鸣器传感器信息
#define ALARM "{\"alarm\":%s,\"id\":%d}"
//风扇
#define FAN "{\"fan\":%s,\"id\":%d}"
//灯
#define LAMP "{\"lamp\":%s,\"id\":%d}"

#endif // GROUD4CONFIG_H
